package com.victualler.product.vender.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.victualler.core.base.dao.BaseDao;
import com.victualler.core.common.annotation.ListShowColumn;
import com.victualler.core.common.enums.ColumnFormatEnum;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @Author: Guoshichang
 * @Date: Create in 22:42 2018/4/9
 * @Discription:    厂商主表
 */
@Entity
@Table(name="vender_main")
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler" })
public class VenderMainDao extends BaseDao implements Serializable{

    @Column
    @ListShowColumn(title = "图片",sort = 0,type = ColumnFormatEnum.IMAGE)
    private Long imgId ;
    @ListShowColumn(title = "厂商名称",sort = 1)
    private String name;
    @ListShowColumn(title = "厂商类型",sort = 2,type = ColumnFormatEnum.DICT,dictCodeType = "VenderType")
    private String type; //厂商类型id



    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getImgId() {
        return imgId;
    }

    public void setImgId(Long imgId) {
        this.imgId = imgId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
